VxRowColumn


Create a RowColumn widget allowing titles and labels

Syntax

VxRowColumn object_name [-title title ] [-label label ] VtRowColumnArgs

Description

Creates a VtRowColumn, allowing -title and -label. Returns the widget name.

Parameters

object_name
The widget hierarchy of the RowColumn.

-title
Creates a Form around the RowColumn widget and attaches a Label above it. The Label is attached to the top side of the Form. The RowColumn widget is attached to the left, right and bottom sides of the Form and also to the bottom side of the Label.

-label
Creates a Form around the RowColumn widget and attaches a Label to the left side of it. The Label is attached to the top and bottom of the Form. The RowColumn widget is attached to the right, top and bottom sides of the Form.

VtRowColumnArgs
Any argument(s) legal for VtRowColumn.

Example

The following code produces a RowColumn widget containing six PushButtons arranged in three columns, together with a title.

set app [VtOpen RowColumn]

set form [VtFormDialog $app.form -title "VxRowColumn Demo" ]
set fn [VxRowColumn $form.fn /
	-numColumns 3 \
	-title "Choose your favorite fruit"]

VtPushButton $fn.but1 -label "Apples"
VtPushButton $fn.but2 -label "Oranges"
VtPushButton $fn.but3 -label "Bananas"
VtPushButton $fn.but4 -label "Kumquats"
VtPushButton $fn.but5 -label "Pears"
VtPushButton $fn.but6 -label "Grapes"

VtShow $form
VtMainLoop

This code produces the following:

Notes

To get the widgetName of the Label or Form that is created using this command use VxGetVar. For example:

VxGetVar $widgetName "form"
or
VxGetVar $widgetName "label"